package cn.com.haopy.yue.ai.db.service.hos;

import cn.com.haopy.yue.ai.db.entity.arisk.AIRiskUserHumanSource;
import cn.com.haopy.yue.ai.db.service.IBaseService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * @Description: TODO
 * @Author DuTao
 * @Date 2025/4/14 17:22
 */
public interface AIRiskUserHumanSourceService extends IBaseService<AIRiskUserHumanSource> {
    AIRiskUserHumanSource getByUserSourceId(Integer userId, String sourceId, String sign);

    AIRiskUserHumanSource getBySourceId(String sourceId, String sign);

    /**
     * 正在使用的资源
     *
     * @return
     */
    Integer getCountUseIng();

    Page<AIRiskUserHumanSource> querySelective(Integer page, Integer limit, Boolean isFinish, String sort, String order);

    int endUseAll();
}
